package com.kandinfo.isbnmanage.service.impl;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.kandinfo.base.common.service.AbstractService;
import com.kandinfo.isbnmanage.domian.IsbnManage;
import com.kandinfo.isbnmanage.repository.IsbnManageRepository;
import com.kandinfo.isbnmanage.service.IsbnManageService;



@Service
public class IsbnManageServiceImpl extends AbstractService<IsbnManage, Long, IsbnManageRepository> implements IsbnManageService {

	@Autowired
	IsbnManageRepository isbnManageRepository;
	
	@Resource
    public void setIsbnManageRepository(
    		IsbnManageRepository isbnManageRepository){
        super.setRepository(isbnManageRepository);
    }
	
	@Override
	public IsbnManage findByBarcode(String barcode){
		return isbnManageRepository.getByBarcode(barcode);
	}

}
